package com.lwt.hospital.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * @author 丁兆顺
 * @date 2020/5/19 1:16
 * @desciption
 */
public class Hospitalized {

    @TableId(type = IdType.AUTO)
    private long id;
    private long user;
    private String room;
    private long timein;
    private long timeout;
    private int appointment;
    private int status;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @TableField(exist = false)
    private String userName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getRoom() {
        return room;
    }

    public void setRoom(String room) {
        this.room = room;
    }

    @Override
    public String toString() {
        return "Hospitalized{" +
                "id=" + id +
                ", user=" + user +
                ", room=" + room +
                ", timein=" + timein +
                ", timeout=" + timeout +
                ", appointment=" + appointment +
                '}';
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getUser() {
        return user;
    }

    public void setUser(long user) {
        this.user = user;
    }

    public long getTimein() {
        return timein;
    }

    public void setTimein(long timein) {
        this.timein = timein;
    }

    public long getTimeout() {
        return timeout;
    }

    public void setTimeout(long timeout) {
        this.timeout = timeout;
    }

    public int getAppointment() {
        return appointment;
    }

    public void setAppointment(int appointment) {
        this.appointment = appointment;
    }
}
